using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;

namespace ILRuntime.Runtime.Generated
{
    unsafe class UIKit_UIView_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            Type[] args;
            Type type = typeof(UIKit.UIView);
            args = new Type[]{typeof(UIKit.UIGestureRecognizer)};
            method = type.GetMethod("AddGestureRecognizer", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddGestureRecognizer_0);
            args = new Type[]{typeof(UIKit.UIGestureRecognizer)};
            method = type.GetMethod("RemoveGestureRecognizer", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveGestureRecognizer_1);
            args = new Type[]{typeof(UIKit.UIView)};
            method = type.GetMethod("AddSubview", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddSubview_2);
            args = new Type[]{};
            method = type.GetMethod("RemoveFromSuperview", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveFromSuperview_3);
            args = new Type[]{};
            method = type.GetMethod("get_Frame", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Frame_4);
            args = new Type[]{typeof(CoreGraphics.CGRect)};
            method = type.GetMethod("set_Frame", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Frame_5);
            args = new Type[]{};
            method = type.GetMethod("get_Bounds", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Bounds_6);
            args = new Type[]{typeof(System.Double), typeof(System.Double), typeof(UIKit.UIViewAnimationOptions), typeof(System.Action), typeof(System.Action)};
            method = type.GetMethod("Animate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Animate_7);
            args = new Type[]{};
            method = type.GetMethod("get_Center", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Center_8);
            args = new Type[]{typeof(CoreGraphics.CGPoint)};
            method = type.GetMethod("set_Center", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Center_9);
            args = new Type[]{typeof(UIKit.UIColor)};
            method = type.GetMethod("set_BackgroundColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_BackgroundColor_10);
            args = new Type[]{};
            method = type.GetMethod("get_BackgroundColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_BackgroundColor_11);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_Hidden", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Hidden_12);
            args = new Type[]{};
            method = type.GetMethod("get_Layer", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Layer_13);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_ClipsToBounds", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_ClipsToBounds_14);
            args = new Type[]{typeof(System.nfloat)};
            method = type.GetMethod("set_Alpha", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Alpha_15);
            args = new Type[]{typeof(UIKit.UIColor)};
            method = type.GetMethod("set_TintColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_TintColor_16);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_UserInteractionEnabled", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_UserInteractionEnabled_17);
            args = new Type[]{typeof(System.nint)};
            method = type.GetMethod("set_Tag", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Tag_18);
            args = new Type[]{};
            method = type.GetMethod("get_Subviews", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Subviews_19);
            args = new Type[]{};
            method = type.GetMethod("get_Tag", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Tag_20);
            args = new Type[]{};
            method = type.GetMethod("get_Superview", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Superview_21);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_TranslatesAutoresizingMaskIntoConstraints", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_TranslatesAutoresizingMaskIntoConstraints_22);
            args = new Type[]{typeof(CoreGraphics.CGRect), typeof(UIKit.UIView)};
            method = type.GetMethod("ConvertRectToView", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ConvertRectToView_23);
            args = new Type[]{typeof(UIKit.UIView)};
            method = type.GetMethod("BringSubviewToFront", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, BringSubviewToFront_24);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* AddGestureRecognizer_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIGestureRecognizer @gestureRecognizer = (UIKit.UIGestureRecognizer)typeof(UIKit.UIGestureRecognizer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.AddGestureRecognizer(@gestureRecognizer);

            return __ret;
        }

        static StackObject* RemoveGestureRecognizer_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIGestureRecognizer @gestureRecognizer = (UIKit.UIGestureRecognizer)typeof(UIKit.UIGestureRecognizer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.RemoveGestureRecognizer(@gestureRecognizer);

            return __ret;
        }

        static StackObject* AddSubview_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView @view = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.AddSubview(@view);

            return __ret;
        }

        static StackObject* RemoveFromSuperview_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.RemoveFromSuperview();

            return __ret;
        }

        static StackObject* get_Frame_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Frame;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_Frame_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            CoreGraphics.CGRect @value = (CoreGraphics.CGRect)typeof(CoreGraphics.CGRect).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Frame = value;

            return __ret;
        }

        static StackObject* get_Bounds_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Bounds;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* Animate_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 5);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Action @completion = (System.Action)typeof(System.Action).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Action @animation = (System.Action)typeof(System.Action).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UIKit.UIViewAnimationOptions @options = (UIKit.UIViewAnimationOptions)typeof(UIKit.UIViewAnimationOptions).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            System.Double @delay = *(double*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            System.Double @duration = *(double*)&ptr_of_this_method->Value;


            UIKit.UIView.Animate(@duration, @delay, @options, @animation, @completion);

            return __ret;
        }

        static StackObject* get_Center_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Center;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_Center_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            CoreGraphics.CGPoint @value = (CoreGraphics.CGPoint)typeof(CoreGraphics.CGPoint).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Center = value;

            return __ret;
        }

        static StackObject* set_BackgroundColor_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIColor @value = (UIKit.UIColor)typeof(UIKit.UIColor).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.BackgroundColor = value;

            return __ret;
        }

        static StackObject* get_BackgroundColor_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.BackgroundColor;

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_Hidden_12(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Hidden = value;

            return __ret;
        }

        static StackObject* get_Layer_13(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Layer;

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_ClipsToBounds_14(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ClipsToBounds = value;

            return __ret;
        }

        static StackObject* set_Alpha_15(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.nfloat @value = (System.nfloat)typeof(System.nfloat).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Alpha = value;

            return __ret;
        }

        static StackObject* set_TintColor_16(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIColor @value = (UIKit.UIColor)typeof(UIKit.UIColor).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.TintColor = value;

            return __ret;
        }

        static StackObject* set_UserInteractionEnabled_17(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.UserInteractionEnabled = value;

            return __ret;
        }

        static StackObject* set_Tag_18(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.nint @value = (System.nint)typeof(System.nint).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Tag = value;

            return __ret;
        }

        static StackObject* get_Subviews_19(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Subviews;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* get_Tag_20(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Tag;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* get_Superview_21(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Superview;

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_TranslatesAutoresizingMaskIntoConstraints_22(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.TranslatesAutoresizingMaskIntoConstraints = value;

            return __ret;
        }

        static StackObject* ConvertRectToView_23(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView @toView = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            CoreGraphics.CGRect @rect = (CoreGraphics.CGRect)typeof(CoreGraphics.CGRect).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.ConvertRectToView(@rect, @toView);

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* BringSubviewToFront_24(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UIKit.UIView @view = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UIKit.UIView instance_of_this_method = (UIKit.UIView)typeof(UIKit.UIView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.BringSubviewToFront(@view);

            return __ret;
        }


        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new UIKit.UIView();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
